<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get result data</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.msql-result" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">msql_result</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">msql_result</span> &mdash; <span class="dc-title">Get result data</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.msql-result-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>msql_result</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$row</code></span>
   [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$field</code></span>
  ] ) : <span class="type">string</span></div>

  <p class="para rdfs-comment"> 
   <span class="function"><strong>msql_result()</strong></span> returns the contents of one cell from a 
   mSQL result set.  
  </p>
  <p class="para"> 
   When working on large result sets, you should consider using one of the 
   functions that fetch an entire row (specified below). As these functions
   return the contents of multiple cells in one function call, they are often
   much quicker than <span class="function"><strong>msql_result()</strong></span>.  
  </p>
  <p class="para"> 
   Recommended high-performance alternatives:
   <span class="function"><a href="msql_fetch_row.html" class="function">msql_fetch_row()</a></span>,
   <span class="function"><a href="msql_fetch_array.html" class="function">msql_fetch_array()</a></span>, and
   <span class="function"><a href="msql_fetch_object.html" class="function">msql_fetch_object()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.msql-result-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<code class="parameter">
result</code></dt>
<dd>
<p class="para"><span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>
型的结果集。此结果集来自对 <span class="function"><a href="msql_query.html" class="function">msql_query()</a></span>
的调用。</p></dd>

   
     <dt>
<code class="parameter">row</code></dt>

     <dd>

      <p class="para">
       The row offset.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">field</code></dt>

     <dd>

      <p class="para">
       Can be the field&#039;s offset, or the field&#039;s name, or the field&#039;s table
       dot field&#039;s name (tablename.fieldname.). If the column name has been 
       aliased (&#039;select foo as bar from ...&#039;), use the alias instead of the
       column name.
      </p>
      <blockquote class="note"><p><strong class="note">Note</strong>: 
       <p class="para">
        Specifying a numeric field offset is much quicker than specifying a 
        fieldname or tablename.fieldname.
       </p>
      </p></blockquote>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.msql-result-returnvalues">
  <h3 class="title">返回值</h3>  
  <p class="para">
   Returns the contents of the cell at the row and offset in the
   specified mSQL result set.
  </p>  
 </div>

</div></div></div></body></html>